group(:component) do  
  group(:pdm_engine, :order => 20, :description => "The pdm engine") do
=begin
    java(:se_commander, "comps/pdm_engine",
         :order => 50,
         :classpath => %W[lib/se-commander/classes lib/se-shared/classes lib/shared/classes conf lib/thirdpart/*.jar lib/shared/*.jar lib/se-shared/*.jar lib/se-commander/*.jar],
         :java_options => %W{-Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Djava.library.path=bin -Dapplication.name=SE-COMMANDER},
	 :debug => 5011,
         :start => {:main => "cn.com.betasoft.dsat.se.Commander"},
         :started => {:flag => "Input command:", :max => 2.minutes},
         :stop => :kill)
    java(:se_scheduler, "comps/pdm_engine",
         :order => 50,
         :classpath => %W[lib/se-scheduler/classes lib/se-shared/classes lib/shared/classes conf lib/thirdpart/*.jar lib/shared/*.jar lib/se-shared/*.jar lib/se-scheduler/*.jar],
         :java_options => %W{ -Xms128m -Xmx1024m -Dfile.encoding=UTF-8 -Djava.library.path=bin -Dapplication.name=SE-SCHEDULER},
         :start => {:main => "cn.com.betasoft.dsat.se.Scheduler"},
         :started => {:flag => "Input command:", :max => 2.minutes},
         :stop => :kill)
=end
    java(:se_sampling, "comps/pdm_engine",
         :order => 50,
         :classpath => %W[lib/se-sampling/classes lib/se-shared/classes lib/shared/classes conf lib/thirdpart/*.jar lib/shared/*.jar lib/se-shared/*.jar lib/se-sampling/*.jar],
         :java_options => %W{-server -XX:ThreadStackSize=256 -XX:MaxPermSize=128m -Xms128m -Xmx1228m -Dfile.encoding=UTF-8 -Djava.library.path=bin -Dapplication.name=SE-SAMPLING},
	 :jmx => 9022,
	 :debug => 5022,
         :start => {:main => "cn.com.betasoft.dsat.se.Sampling"},
         :started => {:flag => "Input command:", :max => 2.minutes},
         :stop => :kill)
  end
end